package com.sena.service;

import com.sena.base.BasePage;
import com.sena.domain.SenaBlackRegexConfig;
import com.sena.domain.SenaClientSite;
import com.sena.domain.SenaSuffixConfig;
import com.sena.domain.SenaWhiteRegexConfig;
import com.sena.vo.RequestBlackList;
import com.sena.vo.RequestSiteList;
import com.sena.vo.RequestSuffixList;
import com.sena.vo.RequestWhiteList;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Admin
 */
public interface SenaClientSiteService {

    public int addClientSite(SenaClientSite senaClientSite);

    public int updateClientSite(SenaClientSite senaClientSite);

    public int deleteClientSite(int id);

    public BasePage<SenaClientSite> listByPage(RequestSiteList request);

    public SenaClientSite selectByPrimaryKey(int id);


    public int addSenaBlackRegexConfig(SenaBlackRegexConfig senaBlackRegexConfig);

    public int addSenaWhiteRegexConfig(SenaWhiteRegexConfig senaWhiteRegexConfig);

    public int addSenaSuffixConfig(SenaSuffixConfig senaSuffixConfig);


    public BasePage<SenaBlackRegexConfig> listByPageBlack(RequestBlackList request);

    public BasePage<SenaWhiteRegexConfig> listByPageWhite(RequestWhiteList request);

    public BasePage<SenaSuffixConfig> listByPageSuffix(RequestSuffixList request);

    public int deleteBlack(int id);

    public int deleteWhite(int id);

    public int deleteSuffix(int id);


    public int updateSenaBlackRegexConfig(SenaBlackRegexConfig senaBlackRegexConfig) ;


    public int updateSenaWhiteRegexConfig(SenaWhiteRegexConfig senaWhiteRegexConfig);

    public int updateSenaSuffixConfig(SenaSuffixConfig senaSuffixConfig);


    public SenaBlackRegexConfig selectBlack(int id);
    public SenaWhiteRegexConfig selectWhite(int id);

    public SenaSuffixConfig selectSuffix(int id);

    public void start();

}
